package com.hzc.springchan.strategy.operationlog.abs;

import com.hzc.springchan.bean.exception.CException;
import com.hzc.springchan.enums.PrivError;
import com.hzc.springchan.enums.PubError;
import com.hzc.springchan.strategy.operationlog.IOperationLogStrategy;
import com.hzc.springchan.util.LogUtils;

import java.util.HashMap;
import java.util.Map;

/**
 * 用户模块操作记录策略抽象类
 * @author chen990627
 * @date 2022/10/18
 */
public abstract class AbsUserOperationStrategy implements IOperationLogStrategy {

    @Override
    public String[] formatParams(Map<String, Object> paramMap) {

        return new String[]{(String) paramMap.get("userName"), (String) paramMap.get("createTime")};
    }
}
